﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第八十一题
//BC83 被5整除问题
//https://www.nowcoder.com/practice/a4f527b043c04551bf4b80b4275a53bd?tpId=107&tqId=33364&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int num = 0;
    while (scanf("%d", &num) != EOF)
    {
        if (num % 5 == 0)
        {
            printf("YES\n");
        }
        else {
            printf("NO\n");
        }
    }
    return 0;
}